package com.example.run.teacherhelper.Fragments;

import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.run.teacherhelper.R;
import com.example.run.teacherhelper.module.Teacher;


/**
 * Created by run on 2015/10/17.
 */
public class AccountFragment extends Fragment {
    private Teacher account;
    private ImageView accout_head;
    private TextView accout_name;
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.account_fragment,null);
        accout_head=(ImageView)view.findViewById(R.id.account_pic);
        accout_name=(TextView)view.findViewById(R.id.account_name);

        //异步加载账号信息
      /*  Task task=new Task();
        task.execute();*/
        accout_head.setImageResource(R.drawable.account_pic);
        accout_name.setText("李逍遥");


        return view;
    }

    class Task extends AsyncTask<String,String,String>{

        @Override
        protected String doInBackground(String... params) {
            return null;
        }
    }
}
